package com.apollow.oschina.ui;

import android.os.Bundle;
import android.support.annotation.Nullable;

import com.apollow.oschina.base.BaseActivityVPAdapter;
import com.apollow.oschina.base.BaseVPActivity;
import com.apollow.oschina.fragment.SoftFragment;

/**
 * Created by Dragon on 2017/1/14.
 */
public class CollectActivity extends BaseVPActivity{
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected String setTitle(String text) {
        text ="用户收藏";
        return text;
    }

    @Override
    protected void setupTab(BaseActivityVPAdapter vpAdapter) {
        vpAdapter.addTab("软件", SoftFragment.class,getBundle("软件"));
        vpAdapter.addTab("话题", SoftFragment.class,getBundle("话题"));
        vpAdapter.addTab("代码", SoftFragment.class,getBundle("代码"));
        vpAdapter.addTab("博客", SoftFragment.class,getBundle("博客"));
        vpAdapter.addTab("资讯", SoftFragment.class,getBundle("资讯"));
    }
}
